package com.huayi.test.springbootcomm.exception;

public class BizException extends RuntimeException{

    private String errCode;
    private String errMsg;


    public BizException(String errCode,String errMsg){
        super("["+errCode+"]"+errMsg);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public BizException(String errMsg){
        super(errMsg);
        this.errMsg = errMsg;
    }
    public BizException(Throwable cause){
        super(cause);
    }

    public String getErrMessage() {
        return errMsg;
    }

    public String getErrCode() {
        return errCode;
    }

}
